# Maintainer: Maxim Baz <$pkgname at maximbaz dot com>

pkgname=yubikey-touch-detector
pkgver=1.10.1
pkgrel=1
pkgdesc='A tool that can detect when your YubiKey is waiting for a touch'
arch=('loong64' 'x86_64')
url='https://github.com/maximbaz/yubikey-touch-detector'
license=('MIT')
depends=('glibc')
makedepends=('go' 'git')
optdepends=('gnupg: for GPG'
            'openssh: for SSH')
source=("${url}/releases/download/${pkgver}/${pkgname}-${pkgver}-src.tar.gz"
        "${url}/releases/download/${pkgver}/${pkgname}-${pkgver}-src.tar.gz.asc")
sha256sums=('a528456d570b923a29d181a508fb1a48e6a726389532694e62b7b06282260ad8'
            'SKIP')
validpgpkeys=('56C3E775E72B0C8B1C0C1BD0B5DB77409B11B601')

build() {
    cd "${pkgname}-${pkgver}"
    make build
}

package() {
    cd "${pkgname}-${pkgver}"
    make DESTDIR="${pkgdir}" install
}

# vim:set ts=4 sw=4 et:
